(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/login/login-tt" ], {
    "766f": function(e, n, t) {
        t.r(n);
        var o = t("ccf7"), i = t.n(o);
        for (var r in o) "default" !== r && function(e) {
            t.d(n, e, function() {
                return o[e];
            });
        }(r);
        n.default = i.a;
    },
    9132: function(e, n, t) {
        t.d(n, "b", function() {
            return o;
        }), t.d(n, "c", function() {
            return i;
        }), t.d(n, "a", function() {});
        var o = function() {
            this.$createElement, this._self._c;
        }, i = [];
    },
    "9ed8": function(e, n, t) {
        (function(e) {
            t("98af"), o(t("66fd"));
            var n = o(t("b4a0"));
            function o(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = t, e(n.default);
        }).call(this, t("543d").createPage);
    },
    b4a0: function(e, n, t) {
        t.r(n);
        var o = t("9132"), i = t("766f");
        for (var r in i) "default" !== r && function(e) {
            t.d(n, e, function() {
                return i[e];
            });
        }(r);
        t("c151");
        var d = t("f0c5"), a = Object(d.a)(i.default, o.b, o.c, !1, null, "4775fc5a", null, !1, o.a, void 0);
        n.default = a.exports;
    },
    b819: function(e, n, t) {},
    c151: function(e, n, t) {
        var o = t("b819");
        t.n(o).a;
    },
    ccf7: function(e, n, t) {
        (function(e) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var t = {
                data: function() {
                    return {
                        openId: "",
                        code: ""
                    };
                },
                onLoad: function() {
                    var n = this;
                    e.login({
                        success: function(e) {
                            e.code && n.$api.byteLoginApi({
                                code: e.code
                            }, function(t) {
                                "1" == t.code ? n.openId = t.data : n.$common.errorToShow(e.msg);
                            });
                        }
                    });
                },
                methods: {
                    getUserInfo: function(e) {
                        "getPhoneNumber:fail user deny" != e.detail.errMsg && "getPhoneNumber:fail:user deny" != e.detail.errMsg && "getPhoneNumber:fail auth deny" != e.detail.errMsg ? this.login(e) : this.$common.errorToShow("未授权");
                    },
                    login: function(n) {
                        var t = this, o = n.detail, i = o.iv, r = o.encryptedData;
                        this.$api.byteLogin2Api({
                            open_id: this.openId,
                            iv: i,
                            edata: r,
                            invite_id: this.$db.get("shareId") || "",
                            is_business: this.$db.get("is_business") || "",
                            thirduserid: this.$db.get("thirduserid") || "",
                            source: this.$db.get("source") || ""
                        }, function(n) {
                            "1" == n.code ? (t.$db.clear(), t.$db.set("userToken", n.data.token), t.$db.set("userId", n.data.user_id), 
                            t.$db.set("mobile", n.data.mobile), t.$db.set("openId", t.openId), t.$api.getUserInfoApi({
                                user_id: t.$db.get("userId")
                            }, function(n) {
                                if ("1" == n.code) {
                                    var o = n.data;
                                    t.$db.set("userInfo", o);
                                    var i = t.$store.state.redirectPage ? t.$store.state.redirectPage : "/pages/index/index";
                                    setTimeout(function() {
                                        e.reLaunch({
                                            url: i
                                        });
                                    }, 100);
                                } else t.$common.errorToShow(n.msg);
                            })) : t.$common.errorToShow(n.msg);
                        });
                    },
                    skipHome: function() {
                        e.reLaunch({
                            url: "/pages/index/index"
                        });
                    }
                }
            };
            n.default = t;
        }).call(this, t("543d").default);
    }
}, [ [ "9ed8", "common/runtime", "common/vendor" ] ] ]);